package cn.edu.pku.ss.situationperceiver;

import org.alljoyn.bus.annotation.Position;

public class DeviceIdentifier {
	/**
	 * Identification of a user(terminal device) will be recorded into this class.
	 * As the device identifier in the OP. 
	 */
	
	@Position(0)
	public String name;
	
	@Position(1)
	public String phoneNumber;
	
	@Position(2)
	public GUID guid;
	
	@Position(3)
	public String peerid;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public GUID getGuid() {
		return guid;
	}
	public void setGuid(GUID guid) {
		this.guid = guid;
	}
	public String getPeerid() {
		return peerid;
	}
	public void setPeerid(String peerid) {
		this.peerid = peerid;
	}
	public DeviceIdentifier(String name, String phoneNumber, GUID guid,
			String peerid) {
		super();
		this.name = name;
		this.phoneNumber = phoneNumber;
		this.guid = guid;
		this.peerid = peerid;
	}
	public DeviceIdentifier(String name, String phoneNumber, String wfaddr, String bladdr,
			String peerid) {
		super();
		this.name = name;
		this.phoneNumber = phoneNumber;
		this.guid = new GUID(wfaddr, bladdr);
		this.peerid = peerid;
	}
}
